package es.ats.codington.festival.domain;

/**
 * POJO class to represent PEOPLE domain class
 */

public class People {

	/**
	 *  Encapsulated data fields of PEOPLE class
	 */
	private int peopleId;
	private String firstName;
	private String lastName;
	private String userName;
	private String email;
	private String dni;
	private String nPhone;
	private String address;
	private String password;
	private boolean isAdmin;
	
	
	/**
	 * Parameterized Constructor of PEOPLE class
	 * @param pId
	 * @param pFirstName
	 * @param pLastName
	 * @param pUserName
	 * @param pEmail
	 * @param pDni
	 * @param pPhone
	 * @param pAddress
	 * @param pPassword
	 * @param esAdmin
	 */
	public People(int pId, String pFirstName, String pLastName, String pUserName, String pEmail, String pDni, String pPhone, String pAddress, String pPassword, Boolean esAdmin) {
		super();
		this.peopleId = pId++;
		this.firstName = pFirstName;
		this.lastName = pLastName;
		this.userName = pUserName;
		this.email = pEmail;
		this.dni = pDni;
		this.nPhone = pPhone;
		this.address = pAddress;
		this.password = pPassword;
		this.isAdmin = esAdmin;
	}
	
	/**
	 * Parameterized Constructor of PEOPLE class
	 * @param pId
	 * @param pFirstName
	 * @param pLastName
	 * @param pUserName
	 * @param pEmail
	 * @param pDni
	 * @param pPhone
	 * @param pAddress
	 * @param pPassword
	 * @param esAdmin
	 */
	public People(String pFirstName, String pLastName, String pUserName, String pEmail, String pDni, String pPhone, String pAddress, String pPassword, Boolean esAdmin) {
		super();
		this.firstName = pFirstName;
		this.lastName = pLastName;
		this.userName = pUserName;
		this.email = pEmail;
		this.dni = pDni;
		this.nPhone = pPhone;
		this.address = pAddress;
		this.password = pPassword;
		this.isAdmin = esAdmin;
	}
	
	/**
	 * Default Constructor of PEOPLE class
	 */
	public People() {	
		this.peopleId = 0;
		this.firstName = "";
		this.lastName = "";
		this.userName ="";
		this.email = "";
		this.dni = "";
		this.nPhone = "";
		this.address = "";
		this.password = "";
		this.isAdmin = false;
	}
	
	
	
	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public int getPeopleId() {
		return peopleId;
	}
	
	/**
	 * SETTER method for PEOPLE class
	 * @param peopleId
	 */
	public void setPeopleId(int peopleId) {
		this.peopleId = peopleId;
	}
	
	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * SETTER method for PEOPLE class
	 * @param firstName
	 */
	public void setFirstName(String firstName) {
			this.firstName = firstName;
	}

	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * SETTER method for PEOPLE class
	 * @param lastName
	 */
	public void setLastName(String lastName) {
			this.lastName = lastName;
	}

	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getUserName() {
		return userName;
	}
	
	/**
	 * SETTER method for PEOPLE class
	 * @param userName
	 */
	public void setUserName(String userName) {
			this.userName = userName;
	}

	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * SETTER method for PEOPLE class
	 * @param email
	 */
	public void setEmail(String email) {
			this.email = email;
	}

	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getDni() {
		return dni;
	}
	
	/**
	 * SETTER method for PEOPLE class
	 * @param dni
	 */
	public void setDni(String dni) {
		this.dni = dni;
	}

	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getnPhone() {
		return nPhone;
	}

	/**
	 * SETTER method for PEOPLE class
	 * @param nPhone
	 */
	public void setnPhone(String nPhone) {
		this.nPhone = nPhone;
	}
	
	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * SETTER method for PEOPLE class
	 * @param address
	 */
	public void setAddress(String address) {
			this.address = address;
	}
	
	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * SETTER method for PEOPLE class
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * GETTER method for PEOPLE class
	 * @return
	 */
	public boolean isAdmin() {
		return isAdmin;
	}

	/**
	 * SETTER method for PEOPLE class
	 * @param isAdmin
	 */
	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	
}
